package mo.qmul.gemom;

import java.util.Vector;
/** COPYRIGHT DISCLAIMER
 * Synopsis: All the source codes presented in this document are intellectual
 * properties of Queen Mary, University of London.
 * 
 * @year 2010
 * @author Peng Jiang, John Bigham, Jiayi Wu Jinfu Wang------------QMUL
 * @version 1.0 
 * */
public class stateRecord {
    private String _namespace;
    private String _measure;
    private Vector<String> _topics;

    
    public stateRecord(String ns, String m) {
    	_namespace = ns;
    	_measure = m;
    	_topics= new Vector<String>();

    }

    public String getNamespace() {
        return _namespace;
    }

    public void setNamespace(String ns) {
    	_namespace = ns;
    }

    public String getMeasure() {
        return _measure;
    }

    public void setMeasure(String measure) {
        _measure = measure;
    }
    
    public void addTopic(String tp)
    {
    	if(!_topics.contains(tp))
    		_topics.add(tp);
    }
    
    public int getnNumofTopic()
    {
    	return _topics.size();
    }
    
    public Vector<String> getTopics(){
    	
    	return _topics;
    }
}